<?php
/**
 * Created by PhpStorm.
 * User: Administrator
 * Date: 2016/8/23
 * Time: 11:31
 */

use yii\widgets\ActiveForm;
?>

<?php $form = ActiveForm::begin(['enableAjaxValidation' => true, 'enableClientValidation' => false,'options'=>['class'=>'form-validate']]); ?>
<div class="yx-clear">
    <label class="zx-label" style="width: 20% !important"><?= $model->attributeLabels()['service_level']; ?></label>
    <div class="zx-field-floatl" style="width: 70% !important; line-height: 30px">
        <?=!empty($service[$model->service_level])?$service[$model->service_level]:''; ?>
    </div>
</div>
<div class="yx-clear">
    <label class="zx-label" style="width: 20% !important"><?= $model->attributeLabels()['teaching_level']; ?></label>
    <div class="zx-field-floatl" style="width: 70% !important; line-height: 30px">
        <?=!empty($teaching[$model->teaching_level])?$teaching[$model->teaching_level]:'' ?>
    </div>
</div>
<div class="yx-clear">
    <label class="zx-label" style="width: 20% !important"><?= $model->attributeLabels()['environmental_level']; ?></label>
    <div class="zx-field-floatl" style="width: 70% !important; line-height: 30px">
        <?=!empty($environmental[$model->environmental_level])?$environmental[$model->environmental_level]:''; ?>
    </div>
</div>
<div class="yx-clear">
    <label class="zx-label" style="width: 20% !important"><?= $model->attributeLabels()['complaint_content']; ?></label>
    <div class="zx-field-floatl" style="width: 70% !important; line-height: 30px">
        <?=$model->complaint_content ?>
    </div>
</div>
<div class="yx-clear">
    <label class="zx-label" style="width: 20% !important"><?= $model->attributeLabels()['status']; ?></label>
    <div class="zx-field-floatl" style="width: 70% !important; line-height: 30px">
        <?= $form->field($model,'status',['template' => '{input}{error}{hint}'])->radioList([1=>'处理中',2=>'处理成功',3=>'驳回投诉'])?>
    </div>
</div>
<div class="yx-clear">
    <label class="zx-label" style="width: 20% !important"><?= $model->attributeLabels()['remarks']; ?></label>
    <div class="zx-field-floatl" style="width: 70% !important; line-height: 30px">
        <?= $form->field($model, 'remarks', ['template' => '{input}{error}{hint}'])->textarea(['rows' => 2, 'style' => 'width:400px;height:170px', 'class' => 'input-textarea','readonly'=>"readonly"]) ?>
    </div>
</div>
<div class="yx-clear">
    <label class="zx-label" style="width: 20% !important"><?= $model->attributeLabels()['new_remark']; ?></label>
    <div class="zx-field-floatl" style="width: 70% !important; line-height: 30px">
        <?= $form->field($model, 'new_remark', ['template' => '{input}{error}{hint}'])->textarea(['rows' => 2, 'style' => 'width:400px;height:80px', 'class' => 'input-textarea']) ?>
    </div>
</div>
<div style="display: none"><button type="submit" id="dosubmit">提交</button></div>
<?php ActiveForm::end();?>
